home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1993 October: Windmill on DISC / ADC Developer CD (1993-10) (''Windmill On DISC'')_iso / Dev.CD Oct 93.iso / System Software / U.S. System Software / System 7 Pro™ Beta 11 / Development Tools / Sample Code / Interprogram Messaging Manager / IPM MessageBoard / MyIPM.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-06-28  |  1.8 KB  |  49 lines  |  [TEXT/MPS ]

  1. /*-------------------------------------------------------------------------------------
  2.  *
  3.  * Simple Sample AYS Application Framework
  4.  *
  5.  * ©1991 Apple Computer
  6.  *
  7.  -------------------------------------------------------------------------------------*/
  8. /*
  9.  * commands.c -- called in response to menu commands or appleevents
  10.  *
  11.  * change history:
  12.  *
  13.  * SJF        11/6/91        1.0d1        initial coding
  14.  *
  15.  */
  16.  
  17. #ifndef __QUEUES__
  18. #include "queues.h"
  19. #endif
  20.  
  21. OSErr InitIPM(void);
  22. void CloseIPM(void);
  23.  
  24. OSErr MakeLocalQueue(IPMContextRef *context,IPMQueueRef *queueRef);
  25. OSErr RemoveLocalQueue(IPMContextRef context,OCERecipient *queueRef);
  26. OSErr GetLocalQueueLocation(OCERecipient *queue,StringPtr queueName,char *xtnValue);
  27.  
  28. OSErr SendIPMMessage(StringPtr message,OCEPackedRecipient *packedQueue);
  29.  
  30. OSErr GetIPMDestination(OCEPackedRecipient **pmPackedRecipient);
  31. void GetDestAsString(short destNum,StringPtr destStr);
  32. void GetOurMessageType(IPMMsgType *msgType);
  33. void GetOurSender(IPMSender *sender);
  34. OSErr GetIdentity(void);
  35. void r2cString(RString *rStr,char *cStr);
  36.  
  37. pascal void OurIPMNotificationProc(IPMQueueRef pmQ, IPMSeqNum pmSeq, IPMNotificationType noteType, unsigned long userData);
  38. void EnqueueNotification(IPMQueueRef pmQ, IPMSeqNum pmSeq, IPMNotificationType noteType);
  39. void ProcessNotification(MyQElemPtr qBlock);
  40. OSErr ProcessNewMessage(IPMQueueRef pmQ, IPMSeqNum pmSeq);
  41. OSErr BailMessageProcessing(IPMParamBlock *pmBlock,OSErr err);
  42.  
  43. OSErr GetServerQueue(OCEPackedRecipient **pmPackedRecipient);
  44. OSErr GetSingleAttrForRecipient(OCEPackedRecipient **pmPackedRecipient,
  45.                                 const OCEAttributeTypeIndex stringIndex);
  46.                                 
  47. OSErr OpenQueueOnRemoteMachine(StringPtr Qname,OCEPackedRecipient **pmPackedRecipient);
  48. OSErr MyCreateQueue(StringPtr TheQName,OCEPackedRecipient **pmPackedRecipient);
  49. OSErr MyOpenQueue(OCERecipient *RecP);